/**
 * Copyright &copy; 2012-2014 <a href="https://github.cn.apestar">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.common.systemannouncement.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.apestar.common.persistence.Page;
import cn.apestar.common.service.CrudService;
import cn.apestar.modules.common.systemannouncement.dao.SystemAnnouncementDao;
import cn.apestar.modules.common.systemannouncement.entity.SystemAnnouncement;

/**
 * 系统公告Service
 * @author yudw
 * @version 2016-08-20
 */
@Service
@Transactional(readOnly = true)
public class SystemAnnouncementService extends CrudService<SystemAnnouncementDao, SystemAnnouncement> {

    public SystemAnnouncement get(String id) {
        return super.get(id);
    }

    public List<SystemAnnouncement> findList(SystemAnnouncement systemAnnouncement) {
        return super.findList(systemAnnouncement);
    }

    public Page<SystemAnnouncement> findPage(Page<SystemAnnouncement> page, SystemAnnouncement systemAnnouncement) {
        return super.findPage(page, systemAnnouncement);
    }

    @Transactional(readOnly = false)
    public void save(SystemAnnouncement systemAnnouncement) {
        super.save(systemAnnouncement);
    }

    @Transactional(readOnly = false)
    public void delete(SystemAnnouncement systemAnnouncement) {
        super.delete(systemAnnouncement);
    }

}